﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package zasp.Display {
    import flash.events.*;
    import flash.display.*;

    public class FullRedrawForcer extends Sprite {

        public function FullRedrawForcer(){
            this.addListener(Event.ADDED_TO_STAGE, this.added_to_stage);
        }
        private static function render(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:Object):void{
            var _local6:int;
            var _local7:int;
            _arg5.clear();
            _arg5.lineStyle(1, 0xFFFFFF);
            _arg5.beginFill(0xFFFFFF);
            _arg5.drawRect(2, 2, 10, 10);
            _arg5.endFill();
            _arg5.lineStyle(2, 0xAF0000);
            _arg5.moveTo(5, 5);
            _arg5.lineTo(10, 10);
            _arg5.moveTo(5, 10);
            _arg5.lineTo(10, 5);
            _local6 = 0;
            while (_local6 < _arg2) {
                _local7 = 0;
                while (_local7 < _arg3) {
                    _arg5.drawCircle(_local6, _local7, _arg4);
                    _local7 = (_local7 + _arg1);
                };
                _local6 = (_local6 + _arg1);
            };
            _local7 = 0;
            while (_local7 < _arg3) {
                _local6 = (_arg2 - 1);
                _arg5.drawCircle(_local6, _local7, _arg4);
                _local7 = (_local7 + _arg1);
            };
            _local6 = 0;
            while (_local6 < _arg2) {
                _local7 = (_arg3 - 1);
                _arg5.drawCircle(_local6, _local7, _arg4);
                _local6 = (_local6 + _arg1);
            };
            _local6 = (_arg2 - 1);
            _local7 = (_arg3 - 1);
            _arg5.drawCircle(_local6, _local7, _arg4);
        }

        private function addListener(_arg1:String, _arg2:Function):void{
            addEventListener(_arg1, _arg2, false, 0, true);
        }
        private function removeListener(_arg1:String, _arg2:Function):void{
            removeEventListener(_arg1, _arg2, false);
        }
        private function added_to_stage(_arg1:Event):void{
            this.removeListener(Event.ADDED_TO_STAGE, this.added_to_stage);
            this.addListener(Event.ENTER_FRAME, this.enter_frame);
            this.addListener(Event.REMOVED_FROM_STAGE, this.removed_from_stage);
        }
        private function removed_from_stage(_arg1:Event):void{
            this.addListener(Event.ADDED_TO_STAGE, this.added_to_stage);
            this.removeListener(Event.ENTER_FRAME, this.enter_frame);
            this.removeListener(Event.REMOVED_FROM_STAGE, this.removed_from_stage);
        }
        private function enter_frame(_arg1:Event):void{
            var _local2 = 160;
            var _local3:int = stage.stageWidth;
            var _local4:int = stage.stageHeight;
            var _local5 = 2;
            render(_local2, _local3, _local4, _local5, graphics);
        }

    }
}//package zasp.Display 
